package com.lzx.reggie.entity

import com.baomidou.mybatisplus.annotation.FieldFill
import com.baomidou.mybatisplus.annotation.TableField
import java.io.Serializable
import java.math.BigDecimal
import java.time.LocalDateTime


data class SetmealDish(
    var id: Long? = null,
    //套餐id
    var setmealId: Long? = null,
    //菜品id
    var dishId: Long? = null,
    //菜品名称 （冗余字段）
    var name: String? = null,
    //菜品原价
    var price: BigDecimal? = null,
    //份数
    var copies: Int? = null,
    //排序
    var sort: Int? = null,

    @TableField(fill = FieldFill.INSERT)
    var createTime: LocalDateTime? = null,

    @TableField(fill = FieldFill.INSERT_UPDATE)
    var updateTime: LocalDateTime? = null,

    @TableField(fill = FieldFill.INSERT)
    var createUser: Long? = null,

    @TableField(fill = FieldFill.INSERT_UPDATE)
    var updateUser: Long? = null,
    //是否删除
    var isDeleted: Int? = null
) : Serializable {
    companion object {
        private const val serialVersionUID = 1L
    }
}

